package com.lzq.model.singleton;

/**
 * @author : modify
 * @version : v1.0
 * @description :
 * @createTime : 2022/11/14 10:00
 * @updateUser : modify
 * @updateTime : 2022/11/14 10:00
 * @updateRemark : 枚举实现
 */
public enum LazyEnum {
    /**
     * 实体对象
     */
    INSTANCE
}

class LazyEnumTest {
    public static void main(String[] args) {
        LazyEnum instance = LazyEnum.INSTANCE;
        LazyEnum instance1 = LazyEnum.INSTANCE;
        System.out.println(instance == instance1);
    }
}